package com.xiyu.service.vo.mailbox.mail.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 邮件错误日志 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MailboxMailErrorLogBase {

    @Schema(description = "账户ID")
    private Long accountId;

    @Schema(description = "文件夹ID")
    private Long folderId;

    @Schema(description = "邮件ID")
    private Long mailId;

    @Schema(description = "uid")
    @Size(max = 50, message = "uid长度不能超过50")
    private String uid;

    @Schema(description = "错误信息")
    private String message;

    @Schema(description = "堆栈信息")
    private String stackTraceInfo;

}
